package cn.congine.wizarpos.mall.service;

import javax.annotation.Resource;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.transaction.TransactionConfiguration;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:/applicationContext-test.xml" })
@TransactionConfiguration(transactionManager = "transactionManager", defaultRollback = false)
public class TranLogIdServiceCase {

	@Resource(type = SysTableKeyService.class)
	private SysTableKeyService sysTableKeyService;
	
	@Test
	public void testCase(){
		//System.out.println(sysTableKeyService.getTranLogId());
		System.out.println(sysTableKeyService.getWxOrderId());
		System.out.println(sysTableKeyService.getWxOrderId());
		System.out.println(sysTableKeyService.getWxOrderId());
	}
}
